﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Basic_sprite_code
{
    class EvilEye:Sprite
    {
        public Apprentice owner;

        public EvilEye(DarkLordsApprentice g, Vector2 position, Apprentice a)
            : base(g, "EvilEyeGreen", position, new Vector2(0, 0))
        {
            owner = a;
            scale = 0.6f;
        }

        public override void Update(GameTime gameTime)
        {
            switch (owner.evilnessLevel)
            {
                case 1:
                    image = game.Content.Load<Texture2D>("EvilEyeGreen");
                    break;

                case 4:
                    image = game.Content.Load<Texture2D>("EvilEyeBlue");
                    break;

                case 7:
                    image = game.Content.Load<Texture2D>("EvilEyeRed");
                    break;

                default:
                    break;
            }
            
            base.Update(gameTime);
        }
    }
}
